package top.byfree.massive

import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
import com.fasterxml.jackson.module.kotlin.readValue
import top.byfree.massive.dsl.massive
import top.byfree.massive.dsl.unit
import top.byfree.massive.prh.Index
import java.io.File
import kotlin.reflect.full.memberProperties
import kotlin.reflect.full.primaryConstructor

/**
 * @author jbyan
 * @since 2024/5/1
 */


class Person {
    @field:Index(1)
    lateinit var name: String
}

fun main() {
    val objectMapper = ObjectMapper(YAMLFactory())
    val yamlFile = File("C:\\Users\\jbyan\\IdeaProjects\\massive\\src\\main\\resources\\massive.yml")
    val readValue = objectMapper.readValue(yamlFile, Map::class.java)
    println(readValue)
}